package com.adqua.testfacebook;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class BarcodeActivity extends Activity{
	
	TextView name_textView, id_textView;
	Button map_btn;
	Button stamp_btn;
	Button barcode_btn;
	
	@Override
	  public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	    setContentView(R.layout.activity_barcode);
	    
	    map_btn = (Button) findViewById(R.id.map_btn);
		stamp_btn = (Button) findViewById(R.id.stamp_btn);
		barcode_btn = (Button) findViewById(R.id.barcode_btn);
		
		map_btn.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent = new Intent(BarcodeActivity.this, MyLocation.class);
				startActivity(intent);
			}
		});
		
		stamp_btn.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent = new Intent(BarcodeActivity.this, StampActivity.class);
				startActivity(intent);
			}
		});
	    
	    name_textView = (TextView) findViewById(R.id.fb_name);
	    id_textView = (TextView) findViewById(R.id.fb_id);
	    
	    String fb_name = getIntent().getStringExtra("fb_name");
	    String fb_id = getIntent().getStringExtra("fb_id");
	    
	    name_textView.setText(fb_name);
	    id_textView.setText(fb_id);
	    
	    
	    
	}

}
